import request from "../utils/request";

// 获取所有符号库树结构
export const getAllLayerdata = () => {
    return request.get("/Symbol/GetSymbolTrees")
}

// 获取所有符号库树结构
export const getSymbolAttributeBySymbolId = (params) => {
    return request.get("Symbol/GetSymbolAttributeBySymbolId", {
        params
    })
}

// 获取所有符号库树结构
export const getSymbolAttributeById = (id) => {
    return request.get("/Symbol/GetSymbolAttributeById", {
        params: {
            id
        }
    })
}

// 删除符号库节点
export const deleteSymbolLevel = (params) => {
    return request.delete("/Symbol/DeleteSymbolLevel", {
        params
    })
}

// 添加节点
export const addSymbolLevel = (data) => {
    return request.post("/Symbol/AddSymbolLevel", data)
}

// 编辑节点
export const editSymbolLevel = (data) => {
    return request.post("/Symbol/EditSymbolLevel", data)
}

// 添加符号
export const addSymbolAttribute = (data) => {
    return request.post("/Symbol/AddSymbolAttribute", data)
}

// 编辑符号
export const editSymbolAttribute = (data) => {
    return request.post("/Symbol/EditSymbolAttribute", data)
}

// 删除符号
export const deleteSymbolAttribute = (params) => {
    return request.delete("/Symbol/DeleteSymbolAttribute", {
        params
    })
}

// 上传图片
export const downLoadImg = (data) => {
    return request.post("/Symbol/DownLoadImg", data)
}

// 上传图片
export const upLoadFile = (data) => {
    return request.post("/Symbol/UpLoadFile", data)
}